<?php
	require_once('Database/Database.php');
	require_once ("Login/LoginModel.php");
	class MainMenu{
		private $profile = '?profile';
		private $noaccess = '#';
		
		public function ShowMainMenu(){
			$db = new Database();
			$login_model = new LoginModel($db);
			
			if($login_model->IsLoggedIn() == true){
				return "
					<nav class='main'>
						<ul>
							<li><a href='#'>Startsida</a></li>
							<li><a href='$this->profile'>Min Profil</a></li>	
							<li><a href='#'>Sök Singlar</a></li>	      
						</ul>
					</nav>
				";
				
			}else{
				return "
					<nav class='main'>
						<ul>
							<li><a href='$this->noaccess'>Startsida</a></li>
							<li><a href='$this->noaccess'>Min Profil</a></li>	
							<li><a href='$this->noaccess'>Sök Singlar</a></li>	      
						</ul>
					</nav>
				";
			}
		}
	}
?>